What :: UBB Compression with cgi_buffer.pm
Version :: 6.1.0 PB 2
Info :: As promised in the recent
U-zine article. Now you can dramatically reduce bandwidth and download times with an easy to use perl module.
Demo ::
http://www.ubbdev.com/ubbcgi/ultimatebb.cgi Credits ::
WiLD for pointing it out to us
Files ::
http://ubbdev.com/hacks/6.1/Compress.zip How To ::
Open ultimatebb.cgi, uncomment use strict; and use vars etc etc (lines #30 and #35) and add this:
require Modules::Compress::cgi_buffer;
import Compress::cgi_buffer
$cgi_buffer::generate_etag = 0;
immediately before your use strict; so that it looks like this:
require Modules::Compress::cgi_buffer;
import Compress::cgi_buffer
$cgi_buffer::generate_etag = 0;
use strict;
use Fcntl ':flock';
use UBBCGI qw(:cgi);
use UBBCGI::Carp qw(fatalsToBrowser set_message);
use vars qw(%etc etc
That should be all you need to do, tho you may want to clear cache...

[ 09-16-2001: Message edited by: AllenAyres ]